package com.example.design.shejimoshi.structure.decorator.core;

/**
 * @Description TODO
 * @date 2022/10/21 16:07
 * @Author liuzhihui
 * @Version 1.0
 */
public class RedShapeDecorator extends ShapeDecorator {

    public RedShapeDecorator(Shape shape) {
        super(shape);
    }

    @Override
    public void draw() {
        super.draw();
        setRedBorder();
    }

    private void setRedBorder(){
        System.out.println("add red border!");
    }
}
